/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.base.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.Area;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 货位Entity
 * @author alex
 * @version 2017-04-25
 */
public class BaLocation extends DataEntity<BaLocation> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 货位编码
	private String name;		// 货位名称
	private String warehouseId;		// 所属仓库ID
	private String warehouseName;		// 所属仓库
	private Area area;		// 所属库区ID
	private String areaName;		// 所属库区
	private String locationType;		// 货位属性 数据字典：location_type 0存储库位、1收货库位、2出货库位
	private String isMixing;		// 是否混放 数据字段：yes_no
	private String skuNum;		// 混放SKU数
	private String upSort;		// 上架顺序号
	private String downSort;		// 拎货顺序号
	private String status;		// 状态
	private String createName;		// 创建人
	private String updateName;		// 更新人
	
	public BaLocation() {
		super();
	}

	public BaLocation(String id){
		super(id);
	}

	@Length(min=0, max=30, message="货位编码长度必须介于 0 和 30 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=50, message="货位名称长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=30, message="所属仓库ID长度必须介于 0 和 30 之间")
	public String getWarehouseId() {
		return warehouseId;
	}

	public void setWarehouseId(String warehouseId) {
		this.warehouseId = warehouseId;
	}
	
	@Length(min=0, max=50, message="所属仓库长度必须介于 0 和 50 之间")
	public String getWarehouseName() {
		return warehouseName;
	}

	public void setWarehouseName(String warehouseName) {
		this.warehouseName = warehouseName;
	}
	
	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}
	
	@Length(min=0, max=50, message="所属库区长度必须介于 0 和 50 之间")
	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}
	
	@Length(min=0, max=1, message="货位属性 数据字典：location_type 0存储库位、1收货库位、2出货库位长度必须介于 0 和 1 之间")
	public String getLocationType() {
		return locationType;
	}

	public void setLocationType(String locationType) {
		this.locationType = locationType;
	}
	
	@Length(min=0, max=1, message="是否混放 数据字段：yes_no长度必须介于 0 和 1 之间")
	public String getIsMixing() {
		return isMixing;
	}

	public void setIsMixing(String isMixing) {
		this.isMixing = isMixing;
	}
	
	@Length(min=0, max=11, message="混放SKU数长度必须介于 0 和 11 之间")
	public String getSkuNum() {
		return skuNum;
	}

	public void setSkuNum(String skuNum) {
		this.skuNum = skuNum;
	}
	
	@Length(min=0, max=11, message="上架顺序号长度必须介于 0 和 11 之间")
	public String getUpSort() {
		return upSort;
	}

	public void setUpSort(String upSort) {
		this.upSort = upSort;
	}
	
	@Length(min=0, max=11, message="拎货顺序号长度必须介于 0 和 11 之间")
	public String getDownSort() {
		return downSort;
	}

	public void setDownSort(String downSort) {
		this.downSort = downSort;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=30, message="创建人长度必须介于 0 和 30 之间")
	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}
	
	@Length(min=0, max=30, message="更新人长度必须介于 0 和 30 之间")
	public String getUpdateName() {
		return updateName;
	}

	public void setUpdateName(String updateName) {
		this.updateName = updateName;
	}
	
}